// @ts-check
const config = {
  title: '橙武低代码平台',
  tagline: '企业级低代码平台文档站',
  url: 'https://hmk_855_admin.gitee.io',
  baseUrl: '/',
  onBrokenLinks: 'ignore',
  onBrokenMarkdownLinks: 'warn',
  favicon: 'img/favicon.ico',
  organizationName: 'hmk_855_admin',
  projectName: 'wiki',

  presets: [
    [
      'classic',
      {
        docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          editUrl: 'https://gitee.com/hmk_855_admin/wiki/edit/master/',
        },
        blog: false,
        theme: {
          customCss: require.resolve('./css/custom.css'),
        },
      },
    ],
  ],
  themeConfig: {
    navbar: {
      // 配置点击 title 跳转到 docs 路径
      items: [
        {
          to: '/docs/', // 指定跳转路径
          label: '橙武低代码平台',
          position: 'left',
        },
      ],
    },
    algolia: {
      appId: 'UFLTSXUO1X',
      apiKey: '4924d463a8db25fa89051a4f8c61430e',
      indexName: 'lowcode',
    },
    // 添加默认进入 docs 的配置
    defaultRoute: '/docs',
  },
};
module.exports = config;
